.class Lcom/melesta/engine/EngineActivity$3$1;
.super Ljava/lang/Object;
.source "EngineActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineActivity$3;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/melesta/engine/EngineActivity$3;


# direct methods
.method constructor <init>(Lcom/melesta/engine/EngineActivity$3;)V
    .locals 0
    .parameter

    .prologue
    .line 638
    iput-object p1, p0, Lcom/melesta/engine/EngineActivity$3$1;->this$1:Lcom/melesta/engine/EngineActivity$3;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 641
    iget-object v4, p0, Lcom/melesta/engine/EngineActivity$3$1;->this$1:Lcom/melesta/engine/EngineActivity$3;

    iget-object v4, v4, Lcom/melesta/engine/EngineActivity$3;->val$transactions:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .local v1, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/melesta/payment/PaymentTransaction;

    .line 642
    .local v3, t:Lcom/melesta/payment/PaymentTransaction;
    iget-object v4, p0, Lcom/melesta/engine/EngineActivity$3$1;->this$1:Lcom/melesta/engine/EngineActivity$3;

    iget-object v4, v4, Lcom/melesta/engine/EngineActivity$3;->this$0:Lcom/melesta/engine/EngineActivity;

    invoke-static {v4}, Lcom/melesta/expansions/ExpansionsManager;->getInstance(Landroid/content/Context;)Lcom/melesta/expansions/ExpansionsManager;

    move-result-object v0

    .line 643
    .local v0, em:Lcom/melesta/expansions/ExpansionsManager;
    const-class v4, Lcom/melesta/payment/PaymentExpansion;

    invoke-virtual {v0, v4}, Lcom/melesta/expansions/ExpansionsManager;->getExpansion(Ljava/lang/Class;)Lcom/melesta/expansions/IEngineExpansion;

    move-result-object v2

    check-cast v2, Lcom/melesta/payment/PaymentExpansion;

    .line 645
    .local v2, pe:Lcom/melesta/payment/PaymentExpansion;
    iget-object v4, v3, Lcom/melesta/payment/PaymentTransaction;->paymentId:Ljava/lang/String;

    iget v5, v3, Lcom/melesta/payment/PaymentTransaction;->quantity:I

    iget-wide v6, v3, Lcom/melesta/payment/PaymentTransaction;->internalId:J

    invoke-virtual {v2, v4, v5, v6, v7}, Lcom/melesta/payment/PaymentExpansion;->resendTransaction(Ljava/lang/String;IJ)V

    goto :goto_0

    .line 647
    .end local v0           #em:Lcom/melesta/expansions/ExpansionsManager;
    .end local v2           #pe:Lcom/melesta/payment/PaymentExpansion;
    .end local v3           #t:Lcom/melesta/payment/PaymentTransaction;
    :cond_0
    return-void
.end method
